/*
 * StorageStrategy.cpp
 *
 *  Created on: 03/10/2009
 *      Author: nik0l4z
 */

#include "../../Strategies/Storage/StorageStrategy.h"

StorageStrategy::StorageStrategy() {
	almacenamiento = NULL;
}

StorageStrategy::~StorageStrategy() {
	delete almacenamiento;
}

void StorageStrategy::saludar(){
	cout << "Soy un StorageStrategy" << endl;
}

int StorageStrategy::saveData(Dato *data){
	cout << "StorageStrategy::saveData | Black Hole Pattern " << endl;
	return 0;
}

int StorageStrategy::saveData(string data){
	cout << "StorageStrategy::saveData | Black Hole Pattern " << endl;
	return 0;
}


void StorageStrategy::deleteData(int fileRefernce){
	cout << "StorageStrategy::deleteData | Black Hole Pattern " << endl;
}

void StorageStrategy::deleteData(list<Clave*> clave){
	cout << "StorageStrategy::deleteData | Black Hole Pattern " << endl;
}

void StorageStrategy::deleteData(Clave* clave, int filePos) {
	cout << "StorageStrategy::deleteData | Black Hole Pattern " << endl;
}

int StorageStrategy::updateData(Dato *data,int filePos){
	cout << "StorageStrategy::updateData | Black Hole Pattern " << endl;
	return filePos;
}

void StorageStrategy::updateData(list<Dato*> datos){
	cout << "StorageStrategy::updateData | Black Hole Pattern " << endl;
}





Almacenamiento *StorageStrategy::getStorage() const{
	cout << "StorageStrategy::getStorage | Black Hole Pattern " << endl;
	return this->almacenamiento;
}

void StorageStrategy::setStorage(Almacenamiento *storage){
	cout << "StorageStrategy::setStorage | Black Hole Pattern " << endl;
	this->almacenamiento = storage;
}


void StorageStrategy::setResourceStrategy (ResourceStrategy* resourceStrategy) {
	this->resourceStrategy = resourceStrategy;
}


string StorageStrategy::getData(Clave *clave, int fileReference){

	cout <<  "StorageStrategy::getData | Black Hole Pattern " << endl;

	return NULL;
}
